<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"></c:set>
<!DOCTYPE html>
<html>

<head>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>H+ 后台主题UI框架 - 数据表格</title>

<link href="${ctx}/favicon.ico" rel="shortcut icon">
<link href="${ctx}/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="${ctx}/css/font-awesome.css?v=4.4.0" rel="stylesheet">
<link href="${ctx}/js/plugins/fancybox/jquery.fancybox.css" rel="stylesheet">
<link href="${ctx}/css/animate.css" rel="stylesheet">
<link href="${ctx}/css/style.css?v=4.1.0" rel="stylesheet">

<!-- Data Tables -->
<link href="${ctx}/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">

<!-- 全局js -->
<script src="${ctx}/js/jquery.min.js?v=2.1.4"></script>
<script src="${ctx}/js/bootstrap.min.js?v=3.3.6"></script>

<!-- Data Tables -->
<script src="${ctx}/js/plugins/dataTables/jquery.dataTables.js"></script>
<script src="${ctx}/js/plugins/dataTables/dataTables.bootstrap.js"></script>

<!-- Fancy box -->
<script src="js/plugins/fancybox/jquery.fancybox.js"></script>

<!-- 引入日历插件js文件 -->
<script src="${ctx}/js/plugins/layer/laydate/laydate.js"></script>

<!-- 引入 Jquery.validate.js 表单验证框架 -->
<script src="${ctx}/js/jquery.validate.min.js"></script>
<script src="${ctx}/js/messages_zh.min.js"></script>

<!-- 自定义js -->
<script src="${ctx}/js/content.js?v=1.0.0"></script>
<script src="${ctx}/task/DelayTaskDetail.js"></script>

<script type="text/javascript">			
	function updateDetail(){
		window.location.href = getContextPath()+"/ChangeDelayTask.oa?id="+$("#taskId").text();
	}
</script>

<script>
	$(document).ready(function() {
		$('.fancybox').fancybox({
			openEffect : 'none',
			closeEffect : 'none'
		});
	});
</script>

</head>

<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5>延期申请批复详情</h5>
						<div class="ibox-tools">
							<a class="collapse-link">
								<i class="fa fa-chevron-up"></i>
							</a>
							<a class="dropdown-toggle" data-toggle="dropdown" href="table_data_tables.html#">
								<i class="fa fa-wrench"></i>
							</a>
							<ul class="dropdown-menu dropdown-user">
								<li><a href="table_data_tables.html#">选项1</a></li>
								<li><a href="table_data_tables.html#">选项2</a></li>
							</ul>
							<a class="close-link">
								<i class="fa fa-times"></i>
							</a>
						</div>
					</div>
					
					<div class="ibox-content">							
							<form class="form-horizontal" action="" method="post" id="taskDetailForm">
							
								<div class="form-group" style="display:none">
									<label class="col-sm-3 control-label">任务id：</label>
									<div class="col-sm-3">
										<span class="help-block m-b-none" id="taskId">${task.taskId}</span>
									</div>
								</div>
					
								<div class="form-group" >
									<label class="col-sm-3 control-label">任务标题：</label>
									<div class="col-sm-3">
										<span class="help-block m-b-none" id="taskTitle">${task.taskTitle}</span>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-3 control-label">任务内容：</label>
									<div class="col-sm-3">
										<span class="help-block m-b-none" id="taskTitle">${task.taskContent}</span>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-3 control-label">申请人：</label>
									<div class="col-sm-3">
										<span class="help-block m-b-none" id="delayClerk">${delay.delayClerk}</span>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-3 control-label">申请日期：</label>
									<div class="col-sm-3">
										<span class="help-block m-b-none" id="applyTime">${delay.applyTime}</span>
									</div>
								</div>
	
								<div class="form-group">
									<label class="col-sm-3 control-label">延期原因：</label>
									<div class="col-sm-3">
										<span class="help-block m-b-none" id="applyReason">${delay.applyReason}</span>
									</div>
								</div>
	
								<div class="form-group">
									<label class="col-sm-3 control-label">延期到（日期）：</label>
									<div class="col-sm-3">
										<span class="help-block m-b-none" id="postTime">${delay.postTime}</span>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-3 control-label">是否同意：</label>
									<div class="col-sm-3">
										<span class="help-block m-b-none" id="replyStatus">${delay.replyStatus eq 0 ? "审核中": (delay.replyStatus eq 1 ? "同意":"拒绝")}</span>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-3 control-label">批复人：</label>
									<div class="col-sm-3">
										<span class="help-block m-b-none" id="replyClerk">${delay.replyClerk}</span>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-3 control-label">批复时间：</label>
									<div class="col-sm-3">
										<span class="help-block m-b-none" id="replyTime">${delay.replyTime}</span>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-3 control-label">详细意见：</label>
									<div class="col-sm-3">
										<span class="help-block m-b-none" id="replyContent">${delay.replyContent}</span>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-3 control-label">其他附件：</label>
									<div class="col-sm-3">
										<span class="help-block m-b-none" id="annex">${delay.annex}</span>
									</div>
								</div>
							
								<div class="form-group">
									<div class="col-sm-offset-3 col-sm-8">
										<button class="btn btn-sm btn-danger" onclick="updateDetail()">修改详情</button>
										<button class="btn btn-sm btn-primary" onclick="javascript:window.history.go(-1)">确认返回</button>
									</div>
								</div>
							</form>							
						</div>
					</div>
				</div>
			</div>				
		</div>
	</div>
</body>

</html>
